.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background-color: var(--global-background);
  border: 1px solid var(--pane-border);
  border-radius: var(--border-radius-xl);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.container.pending {
  border-color: var(--primary-overlay-40);
  box-shadow: 0px 0px 40px 0px var(--primary-overlay-40);
}

.container.error {
  border-color: var(--danger-overlay-40);
  box-shadow: 0px 0px 20px 0px var(--danger-overlay-40);
}

/* Form uses flex layout for better compatibility and accessibility */
.form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.inputSection {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: var(--spacing-2);
  order: 0;
  padding: var(--spacing-4);
  transition:
    background-color var(--default-animation-duration)
    var(--default-timing-function),
    border-color var(--default-animation-duration)
    var(--default-timing-function);
}

.inputSection:first-of-type {
  gap: var(--spacing-3);
  background-color: var(--overlay-5);
  border-bottom: 1px solid var(--pane-border);
}

.buttonContainer {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
  justify-content: flex-end;
}

.error {
  margin-top: var(--spacing-2);
  font-size: var(--font-size-3);
  color: var(--danger-high-contrast-text);
}

.textareaWrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

/* Removed custom fetch button styles - using Button component from @liam-hq/ui */

/* URL input styles */
.urlInputWrapper {
  display: flex;
  gap: var(--spacing-3);
  align-items: center;
}

.urlInput {
  width: 100%;
  height: 36px;
  padding: var(--spacing-2) var(--spacing-3);
  padding-right: calc(var(--spacing-3) + 14px + var(--spacing-2));
  font-family: inherit;
  font-size: var(--font-size-4);
  line-height: 1.5;
  color: var(--global-foreground);
  background-color: var(--global-background);
  border: 1px solid var(--global-border);
  border-radius: var(--border-radius-md);
  transition: border-color 0.2s ease;
}

.urlInput:hover {
  border-color: var(--overlay-30);
}

.urlInput:focus {
  outline: none;
  border-color: var(--pane-border-hover);
}

.urlInput:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.urlInput::placeholder {
  color: var(--overlay-30);
  transition: color 0.2s var(--default-timing-function);
}

.urlInput:hover::placeholder {
  color: var(--overlay-50);
}

/* Removed duplicate fetchButton style */

.textarea {
  width: 100%;
  min-height: 132px;
  padding: 0;
  overflow: hidden;
  font-family: inherit;
  font-size: var(--font-size-6);
  line-height: 1.6;
  color: var(--global-foreground);
  resize: none;
  background: transparent;
  border: none;
}

.textarea:disabled {
  cursor: not-allowed;
}

.textarea:focus {
  outline: none;
}

.textarea::placeholder {
  color: var(--overlay-30);
  transition: color 0.2s var(--default-timing-function);
}

.textarea:hover::placeholder {
  color: var(--overlay-50);
}

/* Input container for positioning */
.inputContainer {
  position: relative;
  flex: 1;
}

/* Clear button positioning */
.clearButton {
  position: absolute;
  top: 50%;
  right: var(--spacing-3);
  z-index: 1;
  transform: translateY(-50%);
}
